package cn.tedu.account.mapper;

import cn.tedu.account.entity.Account;
import com.baomidou.mybatisplus.core.injector.methods.SelectById;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.math.BigDecimal;

public interface AccountMapper extends BaseMapper<Account> {
    void decrease(Long userId, BigDecimal money);

    Account  SelectById(Long userId);
    void updateResidueToFrozen(Long userId,BigDecimal money);
    void updateFrozenToUsed(Long userId,BigDecimal money);
    void updateFrozenToResidue(Long userId,BigDecimal money);

}
